package com.daydayup.learn.desginPatten;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

@Service
public class A implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("Bean 初始化完成后立即调用....");

        Strategy strategy = new GreenPen();
        strategy.draw(10,3,6);
    }
}